﻿using Moq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using GlobalOfficeTools.Interfaces.Model;
using GlobalOfficeTools.Framework.ChildWindowService;
using GlobalOfficeTools.Interfaces.ViewModel;

namespace GlobalOfficeTools.ViewModels.Tests
{
    [TestClass]
    public class MainPageViewModel
    {
        [TestMethod]
        public void Contructor_NullValue_CheckInitialState()
        {
            // Arrange
            var mockClientModel = new Mock<IClientsModel>();
            var mockSystemModel = new Mock<ISystemModel>();
            var mockChildWindowService = new Mock<IChildWindowService>();

            // Act
            IMainPageViewModel viewModelTest = new ViewModels.MainPageViewModel(mockClientModel.Object, mockSystemModel.Object, mockChildWindowService.Object);

            // Assert
            Assert.AreEqual(viewModelTest.LoginBoxVisibility, true);
            Assert.AreEqual(viewModelTest.UserDetailsBoxVisibility, false);
        }
    }
}